]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnail: Update visibility when showing the overview
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 4 Mar 2021 07:14:03 +0000 (08:14 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 4 Mar 2021 12:39:37 +0000 (12:39 +0000)
There's currently a bug that we continue showing the workspace minimap
when the number of workspaces changes back to 1 during the session (ie.
outside the overview). Fix that by also updating the workspaceThumbnails
visibility when entering the overview.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3819

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1741>

js/ui/workspaceThumbnail.js

index 79c8df22490225df55a681ee0d1c5f03df7a2d41..cf03756a55960203154e09f251a3eab8b33165e7 100644 (file)
@@ -1018,6 +1018,8 @@ var ThumbnailsBox = GObject.registerClass({
             this._stateCounts[ThumbnailState[key]] = 0;
 
         this.addThumbnails(0, workspaceManager.n_workspaces);
+
+        this._updateShouldShow();
     }
 
     _destroyThumbnails() {